package com.txt.controller;

import cn.dev33.satoken.stp.StpUtil;
import com.txt.annotion.Txt;
import com.txt.domain.UserLoginDTO;
import com.txt.exception.BusinessException;
import com.txt.exception.ErrorEnum;
import com.txt.result.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test")
@Tag(name = "测试接口")
public class TestController {
    @Txt
    @GetMapping("/exception")
    @Operation(summary = "异常测试")
    public void exceptionTest() {
        throw new BusinessException(ErrorEnum.ERROR_1);
    }




}
